﻿using DXApplication_TestDemo.ViewModels;

namespace DXApplication_TestDemo.Models.ProgramModel
{
    /// <summary>
    /// 程序类(ViewModels/ViewModels)
    /// </summary>
    public class ProgramModel
    {
        private static ProgramModel instance;

        /// <summary>
        /// 静态单例模式
        /// </summary>
        public static ProgramModel Instance
        {
            get
            {
                if (instance == null)
                {
                    instance = new ProgramModel();
                }
                return instance;
            }
        }

        public ProgramModel()
        {
            // 私有构造函数，防止外部直接实例化
            MainViewModels = new MainViewModel();
            MeasViewModels = new MeasViewModel();
            SettingViewModels = new SettingViewModel();

        }

        //ViewModels
        public MainViewModel MainViewModels { get; private set; }
        public MeasViewModel MeasViewModels { get; private set; }
        public SettingViewModel SettingViewModels { get; private set; }


    }
}
